using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SqlTools.CodeGenerator.UI.Forms;

namespace SqlTools.CodeGenerator.UI
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			//Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

			Application.Run(new Forms.Main());
		}

		static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
		{     
			MessageBox.Show("There was was unhandled exception:\r\n" + e.Exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);      
            

		}
	}
}
